package com.sg.service.biz.app.nb;

import cn.hutool.core.bean.BeanUtil;
import com.sg.dto.biz.app.req.ImplementBizConstructAccessParameterFieldReqDto;
import com.sg.dto.biz.app.req.ObtainReceiveFieldReqDto;
import com.sg.dto.biz.app.res.ImplementBizConstructAccessParameterFieldRespDto;
import com.sg.dto.biz.app.res.ObtainReceiveFieldRespDto;
import org.apache.skywalking.apm.toolkit.trace.Tag;
import org.apache.skywalking.apm.toolkit.trace.Tags;
import org.apache.skywalking.apm.toolkit.trace.Trace;
import org.springframework.stereotype.Service;

/**
 * @author ： 手工接入方法
 * @version 1.0
 * @since 2022/5/28 15:32
 */
@Service
public class NbPower {
    /**
     * code:receptionService
     * name:M3-有管理权限
     * desc:undefined
     * gen by moon at 8/21/2022, 4:48:16 AM
     **/
    @Trace(operationName = "M3-有管理权限")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    public ObtainReceiveFieldRespDto obtainReceiveField(ObtainReceiveFieldReqDto reqDto) {
        return BeanUtil.toBean(reqDto, ObtainReceiveFieldRespDto.class);
    }

    /**
     * code:receptionService
     * name:M3-有管理权限0
     * desc:undefined
     * gen by moon at 9/15/2022, 3:51:17 AM
     **/
    @Trace(operationName = "M3-有管理权限0")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    public ImplementBizConstructAccessParameterFieldRespDto implementBizConstructAccessParameterField(ImplementBizConstructAccessParameterFieldReqDto reqDto) {

        return BeanUtil.toBean(reqDto, ImplementBizConstructAccessParameterFieldRespDto.class);
    }

    /**
     * code:receptionService
     * name:M3约定为拥有超级管理权限
     * desc:undefined
     * gen by moon at 2/6/2023, 5:56:36 PM
     **/
    @Trace(operationName = "M3约定为拥有超级管理权限")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    public ImplementAccessParameterBizFieldRespDto implementAccessParameterBizField(ImplementAccessParameterBizFieldReqDto reqDto) {
        return BeanUtil.toBean(reqDto, ImplementAccessParameterBizFieldRespDto.class);
    }
    //手工接入方法
}
